package com.crm.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
  
@ApiModel(description = "渠道统计表")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("activity_channel_stat")
@Api(value = "渠道统计表")
public class ActivityChannelStat {  
  
    @ApiModelProperty(value = "主键", example = "1")  
    private Long id;

    private String channel;

    private String name;

    private String total;

    private String code;

    private String info;
  
    @ApiModelProperty(value = "线索总数", example = "100")  
    private Integer cluesNum;  
  
    @ApiModelProperty(value = "伪线索数", example = "5")  
    @JsonProperty("false_clues_num")  
    private Integer falseCluesNum;  
  
    @ApiModelProperty(value = "转化商机数", example = "10")  
    private Integer businessNum;  
  
    @ApiModelProperty(value = "转化客户数", example = "5")  
    private Integer customerNum;  
  
    @ApiModelProperty(value = "成交金额", example = "1000.00")  
    private BigDecimal amount;  
  
    @ApiModelProperty(value = "活动成本", example = "500.00")  
    private BigDecimal cost;  
  
    @ApiModelProperty(value = "活动ID", example = "1")  
    private Long activityId;  
  
    @ApiModelProperty(value = "商机ID", example = "1")  
    private Long businessId;  
  
    @ApiModelProperty(value = "客户ID", example = "1")  
    private Long customerId;  
  
    @ApiModelProperty(value = "线索ID", example = "1")  
    private Long clueId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "创建时间", example = "2023-01-01T12:00:00")  
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "更新时间", example = "2023-01-01T12:00:00")  
    private LocalDateTime updateTime;
  
    // Getters and Setters  
    // ...  
}